package com.xy;

import com.xy.creature.Creature;
import com.xy.creature.Monster;
import com.xy.creature.Person;

/**
 * @description:界面
 * @author: Xiang Yao
 * @date: Created in 2020/6/7
 */
public class Ui {
    public static void displayStaus(Sense sense){
        System.out.println("===============================================================================");
        System.out.println("╭◢＼＿☆☆☆☆☆☆＿◢＼");
        System.out.println("　　 　  │　　　　 │　");
        System.out.println("  │ ● ╭———╮ ●  │");
        System.out.println("  │≡　│●　●│≡　│ 　");
        System.out.println("  │　 ╰——————╯　　  │ ");
        System.out.println("　 ╰—┬○———————┬—○╯　");
        System.out.println("欢迎来到大闹天宫！");
        System.out.println("游山玩水回来后的孙悟空，发现花果山被天神侵占，猴孙们被天神欺负，一怒之下大闹天宫，杀入天庭......");
        System.out.println("===============================================================================");
        System.out.println("请输入:help 查看游戏命令");
        System.out.println("当前血量：");
        System.out.println(sense.getPerson().getDescription()+": "+sense.getPerson().getHPValue());
        for (Monster item:sense.getMonsterSet().getMonsters()){
            System.out.println(item.getId()+"  "+item.getDescription()+": "+item.getHPValue());

        }
//        System.out.println();


        System.out.println("===============================");
    }
    public static void displayHelpMsg(){
        System.out.println("选择操作:chop bye help ");
    }

//    public static void displayDamageMsg(Person person, Monster monster) {
//    }

    public static void displayBye(){
        System.out.println("下次再见！");
    }

    public static void displayErrorCmdMsg() {
        System.out.println("你输入的是非法命令");
    }


    public void dispalyDamageMsg(Creature attackCreature, Creature targetCreature){
        System.out.println(attackCreature.getDescription()+"对"+targetCreature.getDescription()
                +"造成"+attackCreature.getCurrentWeapon().getDamagePoint()+"伤害。");
    }

    public void displayErroCmdMsg() {

    }
}
